package com.atguigu;

import com.atguigu.ba05.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest05 {

    @Test
    public void test01() {
        String config = "ba05/total.xml";
        ApplicationContext ctx = new ClassPathXmlApplicationContext(config);

        Student myStudent = (Student) ctx.getBean("myStudent");
        System.out.println("Student对象=" + myStudent);

    }

}
